package com.project8.book;

import java.io.Serializable;

public class Figure implements Serializable
{
	private static final long serialVersionUID = -8284303998010340950L;
	
	static int fig_id = 0;
	
	int figureID;
	String figureName;
	Page figurePage;
	String figureCaption;
	int figureNumber;
	
	public Figure(String figName, Page figPage, String caption, int figNum)
	{
		figureID = fig_id++;
		
		figureName = figName;
		figurePage = figPage;
		figureCaption = caption;
		figureNumber = figNum;
	}
		
	public Page getFigurePage()
	{
		return figurePage;
	}
	
	public String getFigureCaption()
	{
		return figureCaption;
	}
	
	public int getFigureNumber()
	{
		return figureNumber;
	}
	
	public String getFigureName()
	{
		return figureName;
	}
	
	public void setFigureNumber(int newNum)
	{
		figureNumber = newNum;
	}
}